check if user has role twig

47

check twig if user has role -

{% if is_granted('ROLE_ADMIN') %}
    <a href="...">Delete</a>
{% endif %}

Comments

Submit
0 Comments